/*
 * 创建日期 2009-12-14
 *
 * 成都天和软件公司
 * 电话：028-85425861
 * 传真：028-85425861-8008
 * 邮编：610041 
 * 版权所有
 */
package  org.fantasy.common.grid.head;

import  org.fantasy.common.grid.HttpServletRequestAware;
import  org.fantasy.common.util.Request;
import  org.fantasy.common.util.RequestUtil;

import javax.servlet.http.HttpServletRequest;

import org.dom4j.Element;

/**
 *  动态表头配置
 * @author: 王文成
 * @version: 1.0
 * @since 2009-12-14
 */
public abstract class TableConfigSupport implements HttpServletRequestAware {
    
    protected Request request;
    
    public void setHttpServletRequest(HttpServletRequest request) {
        prepare(request);
    }
    
    @SuppressWarnings("all")
    public void prepare(HttpServletRequest request){
        this.request = RequestUtil.getWrapRequest(request);
    }

    protected abstract Element getTableConfig() throws Exception;
}
